package com.tarim.streetdance.mapper;

import com.tarim.streetdance.model.Type;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component("TypeMapper")
public interface TypeMapper {
    //查询全部菜单
    List<Type> selectAll(Type type);

    //分页查询
    List<Type> selectWithPageBean(Type type);
    Long selectWithPageBeanCount(Type type);

    int deleteByPrimaryKey(Long id);

    int insert(Type record);

    int insertSelective(Type record);

    Type selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Type record);

    int updateByPrimaryKey(Type record);
}